package com.ksd.modules.rbac.sysuser.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;

/**
 * <p>
 * 系统用户表
 * </p>
 *
 * @author Auto Generator
 * @since 2023-08-13
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("sys_users")
@ApiModel(value = "SysUsers对象", description = "系统用户表")
public class SysUsers implements java.io.Serializable{

    @ApiModelProperty("主键ID")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty("创建时间")
    private LocalDateTime createTime;

    @ApiModelProperty("更新时间")
    private LocalDateTime updateTime;

    @ApiModelProperty("用户UUID")
    private String uuid;

    @ApiModelProperty("用户登录名")
    private String account;

    @ApiModelProperty("用户登录密码")
    private String password;

    @ApiModelProperty("用户昵称")
    private String username;

    @ApiModelProperty("用户头像")
    private String avatar;

    @ApiModelProperty("用户手机号")
    private String phone;

    @ApiModelProperty("用户邮箱")
    private String email;

    @ApiModelProperty("是否启用 1 启用 0禁用")
    private Integer status;

    @ApiModelProperty("是否删除 0未删除 1删除")
    private Integer isDeleted;

    @ApiModelProperty("密码加盐")
    private String slat;

    @ApiModelProperty("查询用户的角色信息")
    @TableField(exist = false)
    private String roleIds;
    // 关联老师信息
    @ApiModelProperty("老师ID")
    private Long teacherId;
    @ApiModelProperty("老师头像")
    private String teacherAvatar;
    @ApiModelProperty("老师唯一标识")
    private String teacherUuid;
    @ApiModelProperty("老师昵称")
    private String teacherNickname;
    @ApiModelProperty("老师用户名")
    private String teacherUsername;
}
